# st = time.time() 
# ft = time.time()
import time
data=[int(x) for x in open('m1_sorted.txt')]
k = 1
st = time.perf_counter()
while k!=0:
    k = 0
    for i in range (len(data) - 1):
        if data[i] > data[i + 1]:
            data[i], data[i + 1] = data[i +1], data[i]
            k+=1
fr = time.perf_counter()
print(fr - st)
